package com.easylinkin.linkappapi.linkage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.easylinkin.linkappapi.linkage.entity.LinkageConfigRefDownDevice;
import com.easylinkin.linkappapi.ruleengine.entity.RuleExecution;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 智能规则联动配置关联设备表 Mapper 接口
 * </p>
 *
 * @author TongJie
 * @since 2020-05-18
 */
public interface LinkageConfigRefDownDeviceMapper extends BaseMapper<LinkageConfigRefDownDevice> {
    int batchInsert(@Param("list") List<LinkageConfigRefDownDevice> list);

    List<LinkageConfigRefDownDevice> listByRuleExecution(@Param("ruleExecution") RuleExecution ruleExecution);
}
